/**
 * Created by Administrator on 2017/4/8 0008.
 */
import React from "react";
import Util from "../../../util/Util"
export default class TotalCountChinese extends React.Component{
    constructor(props){
        super(props)
        this.state={
            count:''
        }
    }

    componentWillMount(){

    }

    addview(){
        switch (this.props.type){
            case"print":
                return(
                    <tr className="order_from_trcontext">
                        <td className="order_frorm_td order_from_td_num "/>
                        <td className="order_frorm_td order_from_td_snum">合计（大写）</td>
                        <td colSpan="17" className="order_frorm_td order_from_td_total" >{Util.numtoChinese(this.state.count)}</td>
                    </tr>

                );
            case 'yarn':
                return(
                    <tr className="order_from_trcontext">
                        <td className="order_frorm_td order_from_td_num "/>
                        <td className="order_frorm_td order_from_td_snum">合计（大写）</td>
                        <td colSpan="17" className="order_frorm_td order_from_td_total" >{Util.numtoChinese(this.state.count)}</td>
                    </tr>
                );

            case 'cloth':
                return(
                    <tr className="order_from_trcontext">
                        <td className="order_frorm_td order_from_td_num "/>
                        <td className="order_frorm_td order_from_td_snum">合计（大写）</td>
                        <td colSpan="17" className="order_frorm_td order_from_td_total" >{Util.numtoChinese(this.state.count)}</td>
                    </tr>
                );
            case"raw":
                return(
                    <tr className="order_from_trcontext">
                        <td className="order_frorm_td order_from_td_num "/>
                        <td className="order_frorm_td order_from_td_snum">合计（大写）</td>
                        <td colSpan="17" className="order_frorm_td order_from_td_total" >{Util.numtoChinese(this.state.count)}</td>
                    </tr>

                );
            case"gms":
                return(
                    <tr className="order_from_trcontext">
                        <td className="order_frorm_td order_from_td_num "/>
                        <td className="order_frorm_td order_from_td_po">合计（大写）</td>
                        <td colSpan="17" className="order_frorm_td order_from_td_total" >{Util.numtoChinese(this.state.count)}</td>
                    </tr>

                );
        }
    }

    render(){
        return (
            <thead>
            {
                this.addview()
            }
            </thead>
        )
    }
}
